package vinciappli;

import control.ControllerPrincipal;
import java.util.Enumeration;
import java.util.Properties;
import java.util.TimerTask;
import javafx.reflect.FXClassType;
import javafx.reflect.FXLocal;
import javafx.reflect.FXLocal.Context;
import javafx.reflect.FXLocal.ObjectValue;

public class Main
{
    public static TimerTask tt = new TimerTask() {

            @Override
            public void run()
            {
                System.err.println("LA FENETRE A ECHOUEE LORS DE SON LANCEMENT, VEUILLEZ RELANCER L OPERATION");
                System.exit(0);
            }
        };

    public static void main(String[] args)
    {
            ControllerPrincipal.getINSTANCE();
            ControllerPrincipal.getINSTANCE().launch();

            Context context = FXLocal.getContext();
            FXClassType instance = context.findClass("view.ViewPrincipal");
            ObjectValue obj = (ObjectValue) instance.newInstance();

            ViewInterface vi = (ViewInterface) obj.asObject();
            vi.build();

    }
}
